import Vue from 'vue'
import VueRouter from 'vue-router'
import login from '@/views/login.vue'
import profile from '@/views/profile.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: login,
    meta:{requireAuth:true}
  },
  {
    path: '/login',
    name: 'login',
    component: login,
    meta:{requireAuth:true}
  },
  {
    path:'/profile',
    name:'profile',
    component:profile,
    meta:{
      requireAuth:true
    }
  },
  
]

const router = new VueRouter({
  routes
})

export default router
